include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})

# Gather all *.cpp and *.h files into their respective variables
file(GLOB SRCS "*.cpp")
file(GLOB HEADERS "*.h")

add_library( ${PROJECT_NAME} SHARED ${SRCS})
target_link_libraries( ${PROJECT_NAME} boost_system boost_filesystem )
set_target_properties(${PROJECT_NAME} PROPERTIES
   INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/obrsp/lib
)

install( TARGETS ${PROJECT_NAME} DESTINATION obrsp/lib )
install( FILES ${HEADERS} DESTINATION obrsp/include/plugin_framework )

message( STATUS "Will build shared library: ${PROJECT_NAME}" )